<template>
  <div class="management">
    <div class="box-line">
      <div v-for="(item, index) in line1" :key="index" class="box">
        <th>{{ item.title }}</th>
        <div class="line" />
        <td v-for="(i, n) in item.text" :key="n">
          <router-link :to="i.link">{{ i.title }}</router-link>
        </td>
      </div>
    </div>
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import Sidebar from "@/layout/components/Sidebar/index.vue";
import NavMenu from "@/components/NavMenu.vue";

export default {
  name: "Management",
  components: {
    Sidebar,
    NavMenu,
  },
  data() {
    return {
      line1: [
        {
          title: "经营日报",
          text: [
            { title: "五星管理", link: "/star" },
            { title: "网点结算", link: "/network" },
            { title: "监控台", link: "/console" },
            { title: "揽收监控", link: "/monitoring" },
            { title: "工单管理", link: "/workorder" },
            { title: "质量报表1", link: "/quality1" },
            { title: "质量报表2", link: "/quality2" },
            { title: "客服报表", link: "/customerreport" },
          ],
        },
      ],
    };
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.management {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-left: 210px;
}

.box {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-flow: column;
  margin: 30px 0px 40px 40px;

  th {
    color: #333;
    font-size: 20px;
    font-weight: normal;
  }

  td {
    margin: 10px 0 10px 0;
    color: #666;
    font-size: 18px;
  }
}

.line {
  height: 1px;
  color: #9999;
  background: #9999;
  width: 216px;
  margin: 10px 0px 10px 0;
  margin-left: 20px;
}
</style>
